﻿using Juli.Mes.Enums;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Domain.Entities.Auditing;

namespace Juli.Mes.Ladles
{
    public class Ladle:FullAuditedEntity<Guid>
    {
        [MaxLength(MesConsts.MaxCodeLength)]
        public string LadleCode { get; set; }

        [MaxLength(MesConsts.MaxNameLength)]
        public string LadleName { get; set; }

        [MaxLength(MesConsts.MaxDesLength)]
        public string Description { get; set; }

        [MaxLength(MesConsts.MaxCodeLength)]
        public string Rfid { get; set; }

        [MaxLength(MesConsts.MaxDesLength)]
        public string Location { get; set; }

        public bool Active { get; set; }

        public EnumLadleState State { get; set; }

        [Comment("罐龄")]
        public int Age { get; set; }

        [Comment("毛重")]
        public double GrossWeight { get; set; }

        [Comment("皮重")]
        public double SkinWeight { get; set; }

        [Comment("温度")]
        public double Temperature { get; set; }

        [Comment("是否满罐")]
        public bool IsFull { get; set; }

        [Comment("是否加盖")]
        public bool IsCap { get; set; }

        public EnumLadleMaterial Material { get; set; }

        [Comment("上水口次数")]
        public int UpWaterGapTime { get; set; }

        [Comment("下水口次数")]
        public int DownWaterGapTime { get; set; }

        [Comment("滑板次数")]
        public int SkateboardTime { get; set; }

        [Comment("渣线次数")]
        public int SlagLineTime { get; set; }

        [Comment("熔池次数")]
        public int MoltenBathTime { get; set; }
    }
}
